package com.gxa.modules.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.gxa.modules.entity.CrmCustomer;
import com.gxa.modules.entity.CrmOrder;
import com.gxa.modules.entity.CrmOrderGoods;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Create with IntelliJ IDEA.
 * Description:
 * User: ZY
 * Date: 2023-03-25
 * Time: 9:47
 */
@Data
public class OrderInsertDTO extends CrmOrder {
    /**
     * 订单ID
     */
    @Id
    @TableId(value = "order_id",type= IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    @TableField("order_no" )
    private Integer orderNo;

    /**
     * 订单总金额
     */
    @TableField("received" )
    private BigDecimal received;

    /**
     * 下单日期
     */
    @TableField("order_date" )
    private Date orderDate;

    /**
     * 交单日期
     */
    @TableField("presentation_date" )
    private Date presentationDate;

    /**
     * 订单备注
     */
    @TableField("order_remarks" )
    private String orderRemarks;

    /**
     * 录入时间
     */
    @TableField("entry_time" )
    private Date entryTime;

    /**
     * 发货状态id
     */
    @TableField("shipment_status_id" )
    private Integer shipmentStatusId;

    /**
     * 订单状态id
     */
    @TableField("order_status_id" )
    private Integer orderStatusId;

    /**
     * 客户id
     */
    @TableField("customer_id" )
    private Integer customerId;

    /**
     * 员工id
     */
    @TableField("employee_id" )
    private Integer employeeId;

    /**
     * 1为未被删除，0为已删除，假删除状态
     */
    private Integer deleteState;

    private List<CrmOrderGoods> crmOrderGoodsList;
}
